import java.io.UnsupportedEncodingException;

public class Main {

    public static void main(String[] args) {
        String str = "你好";
        try {
            System.out.println(new String(str.getBytes("utf-8"),"utf-8"));
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
    }
}
